/**
 * 
 */
package cn.edu.cdtu.healthserver.domain;

/**
 * @author 
 *
 */
public class HealthFileMental {
	private String anxiety;//焦躁神经症
	private String hyster;//歇斯底里
	private String schoizophrenia;//精神分裂
	private String disorder;//躁郁症
	private String depression;//抑郁症
	private String nervous;//神经质
	private String confabulation;//虚构症

	public HealthFileMental() {
		super();
	}

	public HealthFileMental(String anxiety, String hyster,
			String schoizophrenia, String disorder, String depression,
			String nervous, String confabulation) {
		super();
		this.anxiety = anxiety;
		this.hyster = hyster;
		this.schoizophrenia = schoizophrenia;
		this.disorder = disorder;
		this.depression = depression;
		this.nervous = nervous;
		this.confabulation = confabulation;
	}
	
	public HealthFileMental(int anxietyValue, int hysterValue,
			int schoizophreniaValue, int disorderValue, int depressionValue,
			int nervousValue, int confabulationValue){
			
			if(anxietyValue<2){
				this.anxiety="低";
			}else if(anxietyValue<6){
				this.anxiety="稍低";
			}else if(anxietyValue<11){
				this.anxiety="一般";
			}else if(anxietyValue<16){
				this.anxiety="稍高";
			}else if(anxietyValue<21){
				this.anxiety="高";
			}
			
			if(hysterValue<4){
				this.hyster="低";
			}else if(hysterValue<10){
				this.hyster="稍低";
			}else if(hysterValue<14){
				this.hyster="一般";
			}else if(hysterValue<17){
				this.hyster="稍高";
			}else if(hysterValue<21){
				this.hyster="高";
			}
			
			if(schoizophreniaValue<5){
				this.schoizophrenia="低";
			}else if(schoizophreniaValue<10){
				this.schoizophrenia="稍低";
			}else if(schoizophreniaValue<15){
				this.schoizophrenia="一般";
			}else if(schoizophreniaValue<19){
				this.schoizophrenia="稍高";
			}else if(schoizophreniaValue<21){
				this.schoizophrenia="高";
			}
			if(disorderValue<5){
				this.disorder="低";
			}else if(disorderValue<11){
				this.disorder="稍低";
			}else if(disorderValue<15){
				this.disorder="一般";
			}else if(disorderValue<19){
				this.disorder="稍高";
			}else if(disorderValue<21){
				this.disorder="高";
			}
			if(depressionValue<4){
				this.depression="低";
			}else if(depressionValue<9){
				this.depression="稍低";
			}else if(depressionValue<13){
				this.depression="一般";
			}else if(depressionValue<17){
				this.depression="稍高";
			}else if(depressionValue<21){
				this.depression="高";
			}
			
			if(anxietyValue<3){
				this.nervous="低";
			}else if(nervousValue<7){
				this.nervous="稍低";
			}else if(nervousValue<11){
				this.nervous="一般";
			}else if(nervousValue<16){
				this.nervous="稍高";
			}else if(nervousValue<21){
				this.nervous="高";
			}
			if(confabulationValue<2){
				this.confabulation="低";
			}else if(confabulationValue<5){
				this.confabulation="稍低";
			}else if(confabulationValue<10){
				this.confabulation="一般";
			}else if(confabulationValue<16){
				this.confabulation="稍高";
			}else if(confabulationValue<21){
				this.confabulation="高";
			}
		
	}

	@Override
	public String toString() {
		return "HealthFileMental [anxiety=" + anxiety + ", hyster=" + hyster
				+ ", schoizophrenia=" + schoizophrenia + ", disorder="
				+ disorder + ", depression=" + depression + ", nervous="
				+ nervous + ", confabulation=" + confabulation + "]";
	}

	public String getAnxiety() {
		return anxiety;
	}

	public void setAnxiety(String anxiety) {
		this.anxiety = anxiety;
	}

	public String getHyster() {
		return hyster;
	}

	public void setHyster(String hyster) {
		this.hyster = hyster;
	}

	public String getSchoizophrenia() {
		return schoizophrenia;
	}

	public void setSchoizophrenia(String schoizophrenia) {
		this.schoizophrenia = schoizophrenia;
	}

	public String getDisorder() {
		return disorder;
	}

	public void setDisorder(String disorder) {
		this.disorder = disorder;
	}

	public String getDepression() {
		return depression;
	}

	public void setDepression(String depression) {
		this.depression = depression;
	}

	public String getNervous() {
		return nervous;
	}

	public void setNervous(String nervous) {
		this.nervous = nervous;
	}

	public String getConfabulation() {
		return confabulation;
	}

	public void setConfabulation(String confabulation) {
		this.confabulation = confabulation;
	}
	
	
	
}
